import request from '@/utils/request'

// 查询追问信息列表
export function listFollowup(query) {
  return request({
    url: '/system/followup/list',
    method: 'get',
    params: query
  })
}

// 查询追问信息详细
export function getFollowup(followupId) {
  return request({
    url: '/system/followup/' + followupId,
    method: 'get'
  })
}

// 新增追问信息
export function addFollowup(data) {
  return request({
    url: '/system/followup',
    method: 'post',
    data: data
  })
}

// 修改追问信息
export function updateFollowup(data) {
  return request({
    url: '/system/followup',
    method: 'put',
    data: data
  })
}

// 删除追问信息
export function delFollowup(followupId) {
  return request({
    url: '/system/followup/' + followupId,
    method: 'delete'
  })
}
